#ifndef SORTFILTERTABLEMODEL_H
#define SORTFILTERTABLEMODEL_H

#include <QSortFilterProxyModel>

class SortFilterTableModel : public QSortFilterProxyModel
{
    Q_OBJECT

public:
    SortFilterTableModel( QObject * parent );
    ~SortFilterTableModel();
    QVariant userData( const QModelIndex & modelIndex, int role = Qt::UserRole + 1 ) const;

signals:
    void lessThanSignal( const QStandardItem & leftItem, const QStandardItem & rightItem, bool & leftIsGreater, bool & handled ) const;

protected:
    virtual bool filterAcceptsRow( int sourceRow, const QModelIndex & sourceParent ) const;
    virtual bool lessThan( const QModelIndex & left, const QModelIndex & right ) const;
    
private:
    
};

#endif